<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="{ADMIN_THEME}images/reset.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/system.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/dialog.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/main.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/switchbox.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}luos/css/style.min.css?v=4.1.0" rel="stylesheet"><link href="{ADMIN_THEME}images/table_form.css" rel="stylesheet" type="text/css" />
	{template admin/top.html}
<script type="text/javascript" src="{ADMIN_THEME}js/jquery.min.js"></script>
<script type="text/javascript" src="{ADMIN_THEME}js/dialog.js"></script>
<title>admin</title>
</head>
<body style="font-weight: normal;">
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$join_info}<span>|</span>
		<a href="{url('admin/form/list',array('status'=>1,'modelid'=>$modelid,'cid'=>$cid))}" {if $status==1}class="on"{/if}><em>{lang('a-con-20')}({$count[1]})</em></a><span>|</span>
		<a href="{url('admin/form/list',array('status'=>0,'modelid'=>$modelid,'cid'=>$cid))}" {if $status==0}class="on"{/if}><em>{lang('a-con-21')}({$count[0]})</em></a><span>|</span>
		<a href="{url('admin/form/list',array('status'=>3,'modelid'=>$modelid,'cid'=>$cid))}" {if $status==3}class="on"{/if}><em>{lang('a-con-23')}({$count[3]})</em></a><span>|</span>
		{if admin_auth($userinfo['roleid'], 'form-add')}<a href="{url('admin/form/add',array('modelid'=>$modelid, 'cid'=>$cid))}"><em>{lang('a-con-24')}</em></a><span>|</span>{/if}
		{if admin_auth($userinfo['roleid'], 'form-config')}<a href="{url('admin/form/config',array('modelid'=>$modelid, 'cid'=>$cid))}"><em>{lang('a-con-60')}</em></a><span>|</span>{/if}
		<a href="{$site_url}{url('form/post',array('modelid'=>$modelid, 'cid'=>$cid))}" target="_blank"><em>{lang('a-con-61')}</em></a><span>|</span>
		<a href="{$site_url}{url('form/list',array('modelid'=>$modelid, 'cid'=>$cid))}" target="_blank"><em>{lang('a-con-62')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="explain-col">
		<form action="" method="post">
		<input name="form" type="hidden" value="search" />
		userid：
		<input type="text" class="input-text" size="5" name="userid" />
		{lang('a-con-63')}：
		<select id="stype" name="stype">
			<option value="0"> ---- </option>
			{loop $model['fields']['data'] $t}
			<option value="{$t['field']}">{$t['name']}</option>
			{/loop}
		</select>
		&nbsp;&nbsp;
		<input type="text" class="input-text" size="25" name="kw" />
		<input type="submit" class="btn btn-success btn-sm" value="{lang('a-search')}" name="submit" />
		</form>
	</div>
	<div class="bk10"></div>
	<div class="table-responsive mytable">
		<form action="" method="post" name="myform">
		<input name="form" id="list_form" type="hidden" value="order" />
		<table width="100%" class="table table-striped">
		{tpl "$tpl"}
		<tr>
			<td colspan="99" align="left">
			<input {if !admin_auth($userinfo['roleid'], 'form-edit')}disabled{/if} type="submit" class="btn btn-success btn-sm" value="{lang('a-order')}" name="submit_order" onClick="$('#list_form').val('order')" />&nbsp;
			<input {if !admin_auth($userinfo['roleid'], 'form-del')}disabled{/if} type="submit" class="btn btn-success btn-sm" value="{lang('a-del')}" name="submit_del" onClick="$('#list_form').val('del');return confirm_del()" />&nbsp;
			<input {if !admin_auth($userinfo['roleid'], 'form-edit')}disabled{/if} type="submit" class="btn btn-success btn-sm" value="{lang('a-con-36')}" name="submit_status_1" onClick="$('#list_form').val('status_1')" />&nbsp;
			<input {if !admin_auth($userinfo['roleid'], 'form-edit')}disabled{/if} type="submit" class="btn btn-success btn-sm" value="{lang('a-con-37')}" name="submit_status_0" onClick="$('#list_form').val('status_0')" />&nbsp;
			<input {if !admin_auth($userinfo['roleid'], 'form-edit')}disabled{/if} type="submit" class="btn btn-success btn-sm" value="{lang('a-con-39')}" name="submit_status_3" onClick="$('#list_form').val('status_3')" />&nbsp;
			{if $join}
			{lang('a-con-65')}：
			<input type="text" class="input-text" size="10" name="toid" />
			<input {if !admin_auth($userinfo['roleid'], 'form-edit')}disabled{/if} type="submit" class="btn btn-success btn-sm" value="{lang('a-con-66')}" name="submit_join" onClick="$('#list_form').val('join')" />&nbsp;
			{/if}
			</td>
		</tr>
        {if $diy_file}
        <tr>
            <td colspan="99" align="left" style="font-size:12px">
               当前使用的是表单格式默认模板（views/admin/form_default.html），您可以将默认模板文件复制命名为（{$diy_file}），这样方便您重新布局列表显示。
            </td>
        </tr>
        {/if}
        </tbody>
		</table>
		{$pagelist}
		</form>
	</div>
</div>
<script type="text/javascript">
$(function(){
    window.top.art.dialog({id:'clz'}).close();
});
function confirm_del() {
    if (confirm('{lang('a-confirm')}')) { 
		return true; 
	} else {
	    return false;
	}
}
function setC() {
	if($("#deletec").attr('checked')) {
		$(".deletec").attr("checked",true);
	} else {
		$(".deletec").attr("checked",false);
	}
}
</script>
</body>
</html>